package  
{
	import flash.events.Event;
	import flash.events.IEventDispatcher;
	
	public class ProEvent extends Event implements IEventDispatcher
	{
		private var _data:Object;
		
		/**
		 * 发送分数(题号 (id:int)  分数(score:int))
		 */
		public static const SEND_SCORE:String = "SEND_SCORE";
		/**
		 * 发送提示消息(消息(str:String))
		 */
		public static const SEND_NOTICE:String = "SEND_NOTICE";
		/**
		 * 发送初始化数据(获取分数方法:getScroe:Function)
		 */
		public static const SEND_INITDATA:String = "SEND_INITDATA";
		
		public function ProEvent(type:String, d:Object = null, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			_data = d;
		}
		
		public function get data():Object
		{
			return _data;
		}
		
		public function addEventListener(type:String, listener:Function, useCapture:Boolean=false, priority:int=0, useWeakReference:Boolean=false):void
		{
		}
		
		public function removeEventListener(type:String, listener:Function, useCapture:Boolean=false):void
		{
		}
		
		public function dispatchEvent(event:Event):Boolean
		{
			return false;
		}
		
		public function hasEventListener(type:String):Boolean
		{
			return false;
		}
		
		public function willTrigger(type:String):Boolean
		{
			return false;
		}
	}
}